var oa_common = (function(){
    
    function showendtime(obj) {
        var startimeval = $("#subtime1").val();
        if (startimeval == "") {
            //$("#subtime2").val("");
            //$("#subtime2").attr("disabled", "disabled");
        }
        else {
            if (obj) {
                if (startimeval > $("#subtime2").val()) {
                    $("#subtime2").val("");
                }
            }
            $("#subtime2").removeAttr("disabled");
        }
    }
	
    function makePageBar(getData, TotalCount, PageNumber, PageSize,pageContainer) {
        var cont = pageContainer || [".pageIn",".pageIn2",".pageIn3"];
        FillPager(cont[0], {
            TotalCount: TotalCount,
            PageNumber: PageNumber,
            PageSize: PageSize,
            Type: 1,
            Click: getData
        });
        FillPager(cont[1], {
            TotalCount: TotalCount,
            PageNumber: PageNumber,
            PageSize: PageSize,
            Type: 2,
            Click: getData
        });

        FillPager(cont[2], {
            TotalCount: TotalCount,
            PageNumber: PageNumber,
            PageSize: PageSize,
            Type: 3,
            Click: getData
        });
    }
    
	return {
		showendtime : showendtime,
        makePageBar : makePageBar
	}
    
})()